using System;
using System.Drawing;
using System.Runtime.InteropServices;


namespace Agron.Services.Broadcasting
{
    [StructLayout(LayoutKind.Sequential)]
    internal struct POINT
    {
        public int X;
        public int Y;

        public POINT(int x, int y)
        {
            this.X = x;
            this.Y = y;
        }

        public static implicit operator Point(POINT nativePoint)
        {
            return new Point(nativePoint.X, nativePoint.Y);
        }

        public static implicit operator POINT(Point managedPoint)
        {
            return new POINT(managedPoint.X, managedPoint.Y);
        }
    }
}
